package org.tea.inventory.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.tea.inventory.db.domain.Storage;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 证书表
 */
@ApiModel(value = "org-alumni-record-mall-domain-MallCertificate")
@Data
@NoArgsConstructor
public class MallCertificateVo implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "")
    private Long id;
    /**
     * 用户
     */
    @ApiModelProperty(value = "用户")
    private String loginId;
    private String userName;
    private String employeNo;
    @ApiModelProperty(value = "部门")
    private String deptName;
    @ApiModelProperty(value = "部门")
    private String deptId;
    @ApiModelProperty(value = "公司")
    private String companyName;
    /**
     * 证书类型 后续拓展
     */
    @ApiModelProperty(value = "证书类型")
    private String type;
    @ApiModelProperty(value = "证书类型")
    private String typeName;
    /**
     * 证书类别
     */
    @ApiModelProperty(value = "证书类别")
    private String category;
    /**
     * 证书类别
     */
    @ApiModelProperty(value = "证书类别")
    private String categoryName;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 积分
     */
    @ApiModelProperty(value = "积分")
    private Long integral;
    /**
     * 文件ids
     */
    @ApiModelProperty(value = "文件ids")
    private String fileIds;
    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    private String createTimeStr;
    /**
     * 修改时间
     */
    @ApiModelProperty(value = "修改时间")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date modifyTime;
    /**
     * 状态 -1:删除, 0:审核中, 1:通过 2：不通过
     */
    @ApiModelProperty(value = "状态 -1:删除, 0:审核中, 1:通过 2：不通过")
    private Integer status;
    @ApiModelProperty(value = "状态 -1:删除, 0:审核中, 1:通过 2：不通过")
    private String statusName;
    @ApiModelProperty(value = "内容")
    private String content;
    @ApiModelProperty(value = "附件")
    private List<Storage> files;
}